<template>
  <view>
    <muscihead
      title="MV"
      :icon="true"
    ></muscihead>
    <view>
      <scroll-view
        scroll-y="true"
        class="container"
      >
        <view class="videos">
          <video :src="mvList.url">
          </video>
        </view>
          <view>

          </view>
      </scroll-view>

    </view>
  </view>
</template>

<script>
import muscihead from "../../components/musichead/musichead";
import { baseUrl } from "../../common/config";
export default {
  components: {
    muscihead,
  },
  props: {},
  data: () => ({
    id:"",
    mvList: [],
  }),
  onLoad(option) {
    this.id=option.id
    uni.request({

      url: `${baseUrl}/mv/url?id=` + option.id, //仅为示例，并非真实接口地址。
      success: (res) => {
        // console.log(res.data);
        this.mvList = res.data.data;
        // console.log(this.mvList);
      },
    });

    this.getcomment()
  },
  computed: {},
  methods: {
    getcomment(){
      uni.request({
        url: `${baseUrl}/mv/detail/info?mvid=`+this.id, //仅为示例，并非真实接口地址。
     
        success: (res) => {

        }
      });
    }
  },
  watch: {},
};
</script>
<style lang="scss" scoped>
.videos {
  // margin-top: 30rpx;
object-fit:cover;
width: 100%;
height: 500rpx;
  margin-bottom: 30rpx;
  video{
    width: 100%;
    height: 100%;
  }
}
</style>
